#ifndef _CWRITEMEMORY_H__
#define _CWRITEMEMORY_H__

#include "IWriteFile.h"

////////////////////////////////////////////////////////////////////////////////////////////////////

class CWriteMemory : public IWriteFile
{
public:
	CWriteMemory(s32 size);
	~CWriteMemory();

	

	virtual s32 write(const void* buffer, u32 sizeToWrite);
	virtual bool seek(long finalPos, bool relativeMovement = false);

	virtual long getPos() const { return m_nCrtPos; };

	//! Get name of file.
	/** \return File name as zero terminated character string. */
	virtual const c8* getFileName() const { return ""; };

	char* GetBuffer() { return m_buffer; };

protected:
	int		m_bufferSize;
	char*	m_buffer;

	int		m_nCrtPos;
};

////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////

#endif //_CWRITEMEMORY_H__